import axios from '../utils/axios';
import {api} from '@/config/api'


//获取话题列表
export const topicListApi = (data?:any)=>{
  return axios.post(api.topicList,data)
}
//创建话题
export const createTopicApi = (data?:any)=>{
  return axios.post(api.createTopic,data)
}
//编辑话题
export const updateTopicApi = (data?:any)=>{
  return axios.post(api.updateTopic,data)
}
//删除话题
export const deleteTopicApi = (data?:any)=>{
  return axios.post(api.deleteTopic,data)
}
